import javax.swing.plaf.synth.SynthOptionPaneUI;
import java.io.FileInputStream;
import java.io.IOException;
import java.lang.reflect.Field;
import java.util.Properties;


/*
 *@Student 张策
 */
public class Main {
    public static void main(String[] args) throws ClassNotFoundException, IOException, InstantiationException, IllegalAccessException, NoSuchFieldException {
//        Properties properties = new Properties();
//        properties.load(new FileInputStream("src\\re.properties"));
//        String classfullpath = properties.get("classfullpath").toString();
//        Class c1 = Class.forName(classfullpath);
//        Cat cat = (Cat) c1.newInstance();
//        Field field = c1.getField("age");
//        field.set(cat,100);
//        System.out.println(cat);
        C d = new D();
        d.f();
        d.f2();
    }
}
 class Cat {
    public int age;

     public Cat() {
         this.age = 10;
     }

     public void hi(){
        System.out.println("666");
    }

     @Override
     public String toString() {
         return "Cat{" +
                 "age=" + age +
                 '}';
     }
 }
 class C{
    public void f(){
        System.out.println("fu");
    }
    public void f2(){
        System.out.println("f2");
    }
 }
 class D extends C{
    public void f(){
        System.out.println("zi");
    }
 }
